package com.luoluo.pojo.builder;

import com.luoluo.pojo.TouristsLeaveWord;
import javafx.util.Builder;

public class TouristsLeaveWordBuilder implements Builder {
    private TouristsLeaveWord touristsLeaveWord = new TouristsLeaveWord();

    public TouristsLeaveWordBuilder builderId(Integer id) {
        this.touristsLeaveWord.setId(id);
        return this;
    }

    public TouristsLeaveWordBuilder builderName(String name) {
        this.touristsLeaveWord.setName(name);
        return this;
    }

    public TouristsLeaveWordBuilder builderLeaveWordId(Integer leaveWordId) {
        this.touristsLeaveWord.setLeaveWordId(leaveWordId);
        return this;
    }

    public TouristsLeaveWordBuilder builderIp(String ip) {
        this.touristsLeaveWord.setIp(ip);
        return this;
    }

    public TouristsLeaveWordBuilder builderEffective(Integer effective) {
        this.touristsLeaveWord.setEffective(effective);
        return this;
    }

    @Override
    public TouristsLeaveWord build() {
        return this.touristsLeaveWord;
    }
}